<!-- head -->
{include file='public/head' /}
<!-- head -->

<!-- left -->
{include file='public/left' /}
<!-- left -->

<div class="content-wrapper">
    <section class="content-header">
        <h1>
            黑名单列表
            <small>拉黑用户</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 店铺管理</a></li>
            <li class="active">黑名单店</li>
        </ol>
    </section>

    <section class="content">
        <div class="row">
            <div class="col-sm-12">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">共计{$storeList->total()}条记录</h3>
                        <div class="box-tools pull-right">
                            <button type="button" class="btn btn-sm bg-olive" data-url="{:url('Store/addBlackStore','','')}" onclick="ShowMessage(this)"><span class="fa fa-plus"></span> 添加</button>
                            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                            </button>
                            <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                        </div>
                    </div>
                    <div class="box-body">
                        <div class="table-responsive">
                            <table class="table table-bordered table-striped">
                                <form id='iform' action="{:url('Store/BlackStore')}" method="get">
                                    <div class="input-group">
                                        <input type="text" name="phone" value="{$phone}" class="form-control" style="width: 30%; margin-right: 3%" placeholder="请输入老板电话...">
                                        <input type="text" name="salesman" value="{$salesman}" class="form-control" style="width: 30%; margin-right: 3%" placeholder="请输入业务员姓名...">
                                        <input type="text" name="addauthor" value="{$addauthor}" class="form-control" style="width: 30%; margin-right: 3%" placeholder="请输入添加者姓名...">

                                        <span class="input-group-btn">
                                            <button type="submit" name="search" id="search-btn" class="btn btn-flat btn-block"><i class="fa fa-search"></i>
                                            </button>
                                        </span>
                                    </div>
                                </form>
                                <thead>
                                    <tr>
                                        <th>编号</th>
                                        <th>姓名</th>
                                        <th>手机号</th>
                                        <th>业务员</th>
                                        <th>添加者</th>
                                        <th>拉黑时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name='storeList' id='admin'}
                                    <tr>
                                        <td>{$admin.id}</td>
                                        <td>{$admin.name}</td>
                                        <td>{$admin.phone}</td>
                                        <td>{$admin.salesman}</td>
                                        <td>{$admin.addauthor}</td>
                                        <td>{$admin.addtime|date='Y-m-d H:i',###}</td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="box-footer clearfix" style="text-align: center">
                        {$storeList->render()}
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
<script type="text/javascript">
    var dataId = 0;

    function ShowMessage(obj) {
        var url = $(obj).data('url');
        window.location.href = url;
    }
</script>

<!-- foot -->
{include file='public/foot' /}
<!-- foot -->